//店铺列表
SHOP_LIST = {};

SHOP_LIST.__INIT__=function(){
   SHOP_LIST.shop_list();
}

SHOP_LIST.jump = function(){
	var context = SHOP_LIST.data;
	 mainView.router.load({
        url: "src/index/shop_list/shop_list.html",
        context:context
    });
}
SHOP_LIST.shop_list = function(){
	var url = url_('api/V1/shop_list');
	var data = {community_id:SESSION.get_community_id()};
	var success = function(d){
		if (d.code == 0) {
			SHOP_LIST.data = d.data;
			SHOP_LIST.jump();
		} else if(d.code == 1011){
			my_tips_(d.msg,function(){
				go_("login")
			});
		} else{
			my_tips_(d.msg);
		}
	}
	request_(url,data,success)
}
